package com.taobao.api.response;

import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.nr.inventory.inventory.query response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallNrInventoryInventoryQueryResponse extends TaobaoResponse {

	private static final long serialVersionUID = 4155665637519999323L;

	/** 
	 * result
	 */
	@ApiField("result")
	private NrResult result;


	public void setResult(NrResult result) {
		this.result = result;
	}
	public NrResult getResult( ) {
		return this.result;
	}
	
	/**
 * resultData
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrInventoryQueryRespDto extends TaobaoObject {

	private static final long serialVersionUID = 8853192361253517536L;

	/**
		 * 天猫商品id
		 */
		@ApiField("item_id")
		private Long itemId;
		/**
		 * 占用库存数
		 */
		@ApiField("occupy_quantity")
		private Long occupyQuantity;
		/**
		 * 门店物理库存
		 */
		@ApiField("quantity")
		private Long quantity;
		/**
		 * 可售库存数
		 */
		@ApiField("sellable_quantity")
		private Long sellableQuantity;
		/**
		 * 天猫门店id
		 */
		@ApiField("store_code")
		private String storeCode;
		/**
		 * 预扣库存数
		 */
		@ApiField("withholding_quantity")
		private Long withholdingQuantity;
	

	public Long getItemId() {
			return this.itemId;
		}
		public void setItemId(Long itemId) {
			this.itemId = itemId;
		}
		public Long getOccupyQuantity() {
			return this.occupyQuantity;
		}
		public void setOccupyQuantity(Long occupyQuantity) {
			this.occupyQuantity = occupyQuantity;
		}
		public Long getQuantity() {
			return this.quantity;
		}
		public void setQuantity(Long quantity) {
			this.quantity = quantity;
		}
		public Long getSellableQuantity() {
			return this.sellableQuantity;
		}
		public void setSellableQuantity(Long sellableQuantity) {
			this.sellableQuantity = sellableQuantity;
		}
		public String getStoreCode() {
			return this.storeCode;
		}
		public void setStoreCode(String storeCode) {
			this.storeCode = storeCode;
		}
		public Long getWithholdingQuantity() {
			return this.withholdingQuantity;
		}
		public void setWithholdingQuantity(Long withholdingQuantity) {
			this.withholdingQuantity = withholdingQuantity;
		}

}

	/**
 * result
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrResult extends TaobaoObject {

	private static final long serialVersionUID = 2668669457918554945L;

	/**
		 * 错误码
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * 错误信息
		 */
		@ApiField("error_message")
		private String errorMessage;
		/**
		 * resultData
		 */
		@ApiListField("result_datas")
		@ApiField("nr_inventory_query_resp_dto")
		private List<NrInventoryQueryRespDto> resultDatas;
		/**
		 * 是否成功
		 */
		@ApiField("success")
		private Boolean success;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMessage() {
			return this.errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public List<NrInventoryQueryRespDto> getResultDatas() {
			return this.resultDatas;
		}
		public void setResultDatas(List<NrInventoryQueryRespDto> resultDatas) {
			this.resultDatas = resultDatas;
		}
		public Boolean getSuccess() {
			return this.success;
		}
		public void setSuccess(Boolean success) {
			this.success = success;
		}

}



}
